/*
 * @Date: 2023-02-12 17:23:14
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-02-27 19:50:52
 * @FilePath: \A19\backend\src\shared\protocols\Create\PtlCreateTest.ts
 */
import { questions } from './../../types/Question';
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { ObjectId } from 'mongodb';

export interface ReqCreateTest extends BaseRequest {
    course: ObjectId
    startTime: Date
    endTime: Date
    name: string
    questions:Array<ObjectId>
    status: "saved" | "published"
}

export interface ResCreateTest extends BaseResponse {

}

export const conf: BaseConf = {
    needRole: 'teacher',
    needLogin: true
}